package order;
/*
*public Order(String orderId, double amount, String customer)
*
* */
public class Order {
    private String orderId; // 订单的唯一标识符
    private double amount;  // 订单的金额
    private String customer; // 订单的客户名称

    public Order(String orderId, double amount, String customer) {
        this.orderId = orderId;
        this.amount = amount;
        this.customer = customer;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", amount=" + amount +
                ", customer='" + customer + '\'' +
                '}';
    }
}
